<template>
  <el-config-provider :locale="locale">
    <router-view v-slot="{ Component }">
      <keep-alive>
        <component :is="Component" />
      </keep-alive>
    </router-view>
  </el-config-provider>
</template>

<script>
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import { ElConfigProvider } from 'element-plus'

export default {
  name: 'App',
  components: { ElConfigProvider },
  setup() {
    return {
      locale: zhCn
    }
  },
  computed: {
    cachedViews() {
      return this.$store.tagsViewStore.cachedViews
    }
  }

}
</script>
<style lang="scss">
@use 'nprogress/nprogress.css';

#nprogress .bar {
  height: 3px;
  background: var(--el-color-primary) !important; /* Element Plus 主题色 */
}
</style>
